﻿using classInterface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing;
using System.Net.NetworkInformation;

namespace classInterface.button
{
    public class classButton: UserForm
    {
        public classButton()
        {

            _btn = new Button();
            _name = "classButton_btn";
        }
        public override Control cenControl_ => _btn;
        public override string Name => _name;
        public override void ShowName()
        {
            _btn.Text=Name;
            
        }
        public override void DrawData(Point[] p)
        {
            _btn.Text = "";
            foreach (var item in p)
            {
                _btn.Text += item.ToString();
            }
        }
        
        private string _name;
        private Button _btn;
    }
}
